package com.example.demo.service.serviceImpl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.WaresManage;
import com.example.demo.mapper.WaresManageMapper;
import com.example.demo.service.WaresManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service(value = "waresManageService")
public class WaresManageServiceImpl extends ServiceImpl<WaresManageMapper, WaresManage> implements WaresManageService {
    @Autowired
    private WaresManageMapper waresManageMapper;


    @Override
    public Integer editWaresManage(WaresManage waresManage) {
        return waresManageMapper.updateById(waresManage);
    }

    @Override
    public IPage<List<Map<String, String>>> getWaresManagePage(Page page) {
        return waresManageMapper.selectWaresManagePage(page);
    }
}
